package com.xujc.dao;

import com.xujc.entity.UserEntity;

/**
 * Created by xujc on 6/16/15.
 */
public interface IUserDAO {
    UserEntity getByEmail(String email);

    UserEntity getById(int uid);

    boolean hasUser(String email);
    boolean checkPassword(String email,String password);
    void changePassword(int uid,String newPassword);
    void changeName(int uid,String newName);
    int register(String email, String password, String userName);
}
